<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>判断考生成绩是否达到本科线</title>
</head>
<body>
    <script>
        function pds(a1,a2,a3,a4){
            var tp=a1+a2+a3+a4;
            return tp
        }
        function sum(a1,a2,a3,a4){
            var m=pds(a1,a2,a3,a4)
            document.write("考生总分为："+m+"分</br>")
            if(m>=550){
            document.write("该考生成绩达到本科线分数线")
            }else{
            document.write("该考生成绩未达到本科线分数线")
            }
        }
        sum(108,115,126,237);
    </script>
</body>
</html>